package com.junxonline.instant.terminal.config;

import org.apache.dubbo.config.ConsumerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Dubbo配置类
 *
 * @author JunX
 * @date 2021-06-16
 */
@Configuration
public class DubboConfig {

    @Bean
    public ConsumerConfig consumerConfig() {
        ConsumerConfig config = new ConsumerConfig();
        config.setTimeout(30000);
        config.setCheck(false);
        return config;
    }

}
